package com.hzit.order.service;

import com.alipay.api.AlipayApiException;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hzit.common.utils.PayAsyncVo;
import com.hzit.order.entity.Cart;
import com.hzit.order.entity.TbAddress;
import com.hzit.order.entity.TbOrder;

import java.io.UnsupportedEncodingException;
import java.util.List;
import java.util.Map;

public interface OrderService extends IService<TbOrder> {

	List<Cart> findCartList(String name);

	void add(String name,TbOrder order);

	void saveOrder();

	String createPayPage(String outTradeNo, String totalFee) throws AlipayApiException;

	String sendNotify(Map<String, String[]> requestParams, PayAsyncVo vo) throws UnsupportedEncodingException, AlipayApiException;

	List<TbOrder> findOrderListByname(String name);
}
